<ul class="search2">
	<li>
		{if isset($templatelite.get.search)}
			{assign var=searchboxtext value=$templatelite.get.search|sanitize:2}
		{else}
			{assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}			
		{/if}
	
		{if $SearchMethod eq 4}
			<!-- SiteSearch Google -->
			<form method="get" action="{$my_base_url}{$my_pligg_base}/search.php" target="_top">
				<label for="sbi" style="display: none">"{$searchboxtext}</label>
				<input type="text" size="20" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '搜索...') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '搜索...';{rdelim}"/>
				<label for="sbb" style="display: none">{#PLIGG_Visual_Search_Go#}</label>
				<input type="submit" name="sa" value="{#PLIGG_Visual_Search_Go#}" />

				<input type="hidden" name="sitesearch" value="{$my_base_url}{$my_pligg_base}" id="ss1"></input>

				<input type="hidden" name="flav" value="0002"></input>
				<input type="hidden" name="client" value="pub-7688534628068296"></input>
				<input type="hidden" name="forid" value="1"></input>
				<input type="hidden" name="ie" value="ISO-8859-1"></input>
				<input type="hidden" name="oe" value="ISO-8859-1"></input>
				<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11"></input>
				<input type="hidden" name="hl" value="en"></input>
			</form>
			<!-- SiteSearch Google -->				
		{else}
			<form action="{$my_pligg_base}/search.php" method="get" name="thisform-search" id="thisform-search">
				<input type="text" size="20" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '搜索...') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '搜索...';{rdelim}"/>
				<input type="submit" value=" 搜索 " class="submit" />
			</form>
		{/if}
	</li>
</ul>

<div id="headbar" style="padding-bottom:2px;">
	<ul>
		<li>
			{if $user_authenticated eq true}
				{#PLIGG_Visual_Welcome_Back#} {if $UseAvatars neq "0"} <img src="{$Current_User_Avatar_ImgSrc}" alt="Avatar" align="absmiddle"/>{/if} {$user_logged_names}&nbsp;&nbsp;
				{if isset($isgod) && $isgod eq 1} <a href="{$URL_admin}"> {#PLIGG_Visual_Header_AdminPanel#}</a> &nbsp;&nbsp; {/if}		
				<a href='{$my_base_url}{$my_pligg_base}' {if $pagename eq 'published'}style="color:green;"{/if}>{#PLIGG_Visual_Home#}</a> &nbsp;&nbsp;
				<a href="{$URL_userNoVar}" {if ($pagename eq "user") or ($pagename eq "profile") or (($pagename eq"story") && (($doing eq "view_recoby") || ($doing eq "view_becommented")))}style="color:green;"{/if}> {#PLIGG_Visual_Profile#}</a> &nbsp;&nbsp;
				<a href='{$my_base_url}{$my_pligg_base}/communicate.php' {if $pagename eq 'communicate'}style="color:green;"{/if}>信箱</a> &nbsp;&nbsp;
				<a href='{$my_base_url}{$my_pligg_base}/submit_user.php' {if (($pagename eq 'submit_user') or ($pagename eq 'submit_thing'))}style="color:green;"{/if}>推荐</a> &nbsp;&nbsp;
				{checkActionsTpl location="tpl_sidebar_logged_in_just_below_profile"} <!--&nbsp;&nbsp;-->
				<a href='{$my_base_url}{$my_pligg_base}/human_hunt.php?view=edit_newhunt' {if $pagename eq 'human_hunt'}style="color:green;"{/if}>寻人</a> &nbsp;&nbsp;
				<a href='{$my_base_url}{$my_pligg_base}/group.php' {if (($pagename eq 'group') or ($pagename eq 'group_admin'))}style="color:green;"{/if}>小组</a> &nbsp;&nbsp;
				{if $Enable_Tags eq 'true'}<a href="{$URL_tagcloud}" {if $pagename eq 'cloud'}style="color:green;"{/if}>{#PLIGG_Visual_Tags#}</a> &nbsp;&nbsp; {/if}
				<a href="{$URL_logout}"> {#PLIGG_Visual_Logout#}</a>
			{else}
				<a href='{$my_base_url}{$my_pligg_base}' {if $pagename eq 'published'}style="color:green;"{/if}>{#PLIGG_Visual_Home#}</a> &nbsp;&nbsp;
				<a href='{$URL_login}'>{#PLIGG_Visual_Login_Title#}</a> &nbsp;&nbsp;
				<a href='{$URL_register}'>{#PLIGG_Visual_Register#}</a> &nbsp;&nbsp;
				<a href="{$URL_userNoVar}" {if ($pagename eq "user") or ($pagename eq "profile") or (($pagename eq"story") && (($doing eq "view_recoby") || ($doing eq "view_becommented")))}style="color:green;"{/if}> {#PLIGG_Visual_Profile#}</a> &nbsp;&nbsp;
				<a href='{$my_base_url}{$my_pligg_base}/communicate.php' {if $pagename eq 'communicate'}style="color:green;"{/if}>信箱</a> &nbsp;&nbsp;
				<a href='{$my_base_url}{$my_pligg_base}/submit_user.php' {if $pagename eq 'submit_user'}style="color:green;"{/if}>推荐</a> &nbsp;&nbsp;
				<a href='{$my_base_url}{$my_pligg_base}/human_hunt.php' {if $pagename eq 'human_hunt'}style="color:green;"{/if}>寻人</a> &nbsp;&nbsp;
				<a href='{$my_base_url}{$my_pligg_base}/group.php' {if $pagename eq 'group'}style="color:green;"{/if}>小组</a> &nbsp;&nbsp;
				{if $Enable_Tags eq 'true'}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Tags#}</a> &nbsp;&nbsp; {/if}
			{/if}
		</li>
	</ul>
</div>

{checkActionsTpl location="tpl_banner_location_main"}

<div id="cab">
	<ul>
		{if ($pagename eq "user") or ($pagename eq "profile") or (($pagename eq"story") && (($doing eq "view_recoby") || ($doing eq "view_becommented")))}    
			<li><a href="user.php?login={$user_login}&view=profile" {if $doing eq "view_profile"} class="navbut4" {else} class="navbut3" {/if}><span>{if $user_nickname != ''}{$user_nickname}的{/if}资料</span></a></li>
			{if $user_login eq $user_logged_in}
				<li><a href="profile.php" {if $doing eq "change_profile"} class="navbut4" {else} class="navbut3" {/if}><span>修改资料</span></a></li>
			{/if}
			<li><a href="user.php?login={$user_login}&view=voted&cat=1" {if $doing eq "view_reco_cat1"} class="navbut4" {else} class="navbut3" {/if}><span>推荐的人</span></a></li>
			<li><a href="user.php?login={$user_login}&view=voted&cat=2" {if $doing eq "view_reco_cat2"} class="navbut4" {else} class="navbut3" {/if}><span>推荐的物</span></a></li>
			<li><a href="user.php?login={$user_login}&view=staff" {if $doing eq "view_staff"} class="navbut4" {else} class="navbut3" {/if}><span>提供的物</span></a></li>
			<li><a href="user.php?login={$user_login}&view=commented" {if $doing eq "view_comments"} class="navbut4" {else} class="navbut3" {/if}><span>发表的评论</span></a></li>
			<li><a href="user.php?login={$user_login}&view=recoby" {if $doing eq "view_recoby"} class="navbut4" {else} class="navbut3" {/if}><span>推荐{if $user_nickname != ''}{$user_nickname}的{/if}人</span></a></li>
			<li><a href="user.php?login={$user_login}&view=becommented" {if $doing eq "view_becommented"} class="navbut4" {else} class="navbut3" {/if}><span>{if $user_nickname != ''}对{$user_nickname}的{/if}评论</span></a></li>
		{/if}
		{if $pagename eq "communicate"}
			<li><a href="communicate.php?view=inbox" {if $doing eq "view_inbox"} class="navbut4" {else} class="navbut3" {/if}><span>收件箱</span></a></li>
			<li><a href="communicate.php?view=outbox" {if $doing eq "view_outbox"} class="navbut4" {else} class="navbut3" {/if}><span>发件箱</span></a></li>
			<!--<li><a href="communicate.php?view=contact" {if $doing eq "view_contact"} class="navbut4" {else} class="navbut3" {/if}><span>通讯录</span></a></li>-->
			<li><a href="communicate.php?view=editnewmsg" {if $doing eq "edit_newmsg"} class="navbut4" {else} class="navbut3" {/if}><span>写邮件</span></a></li>
		{/if}
		{if $pagename eq "human_hunt"}
			<li><a href="hunts_list.php" {if $doing eq "show_hunts"} class="navbut4" {else} class="navbut3" {/if}><span>寻人启事</span></a></li>				
			<li><a href="human_hunt.php?view=owner_hunt" {if $doing eq "owner_hunt"} class="navbut4" {else} class="navbut3" {/if}><span>失物招领</span></a></li>			
			{if $user_authenticated neq true}
				<li><a href="human_hunt.php?view=user_hunt" {if $doing eq "user_hunt"} class="navbut4" {else} class="navbut3" {/if}><span>档案招领</span></a></li>	
			{/if}		
			<li><a href="human_hunt.php?view=edit_newhunt" {if $doing eq "edit_newhunt"} class="navbut4" {else} class="navbut3" {/if}><span>我要寻人</span></a></li>
		{/if}
		{if $pagename eq "submit_user"}
			<li><a href="submit_user.php" {if $pagename eq "submit_user"} class="navbut4" {else} class="navbut3" {/if}><span>推荐一个人</span></a></li>
			<li><a href="submit_thing.php" {if $pagename eq "submit_thing"} class="navbut4" {else} class="navbut3" {/if}><span>推荐一个物</span></a></li>
		{/if}
		{if $pagename eq "submit_thing"}
			<li><a href="submit_user.php" {if $pagename eq "submit_user"} class="navbut4" {else} class="navbut3" {/if}><span>推荐一个人</span></a></li>
			<li><a href="submit_thing.php" {if $pagename eq "submit_thing"} class="navbut4" {else} class="navbut3" {/if}><span>推荐一个物</span></a></li>
		{/if}
		{if $pagename eq "published"}
			<li><a href="{$my_base_url}{$my_pligg_base}" {if $pagename eq "published"} class="navbut4" {else} class="navbut3" {/if}><span>最新推荐</span></a></li>
			<li><a href="hunts_list.php" {if $doing eq "view_hunts"} class="navbut4" {else} class="navbut3" {/if}><span>寻人启事</span></a></li>
		{/if}
		{if $pagename eq "group"}
			<li><a href="group.php" {if $doing eq 'viewgrouplist'} class="navbut4" {else} class="navbut3" {/if}><span>小组列表</span></a></li>
			{if $grp_id}
				<li><a href="group.php?grp_id={$grp_id}&doing=viewmembers" {if $doing eq 'viewmembers'} class="navbut4" {else} class="navbut3" {/if}><span>小组成员</span></a></li>
				<li><a href="group.php?grp_id={$grp_id}&doing=viewrecopeople" {if $doing eq 'viewrecopeople'} class="navbut4" {else} class="navbut3" {/if}><span>小组推荐的人</span></a></li>
				<li><a href="group.php?grp_id={$grp_id}&doing=viewrecothing" {if $doing eq 'viewrecothing'} class="navbut4" {else} class="navbut3" {/if}><span>小组推荐的物</span></a></li>
				{if $current_user_type}
				{if (($current_user_type eq 'owner') or ($current_user_type eq 'admin'))}
					<li><a href="groupadmin.php?grp_id={$grp_id}" {if $doing eq 'sendinvite'} class="navbut4" {else} class="navbut3" {/if}><span>管理小组</span></a></li>
				{/if}
				{/if}
			{/if}
			<li><a href="groupadmin.php" {if $doing eq 'newgroup'} class="navbut4" {else} class="navbut3" {/if}><span>新建小组</span></a></li>
		{/if}
		{if $pagename eq "group_admin"}
			<li><a href="groupadmin.php" {if $doing eq 'newgroup'} class="navbut4" {else} class="navbut3" {/if}><span>新建小组</span></a></li>
			{if $grp_id}
				<li><a href="groupadmin.php?grp_id={$grp_id}&doing=editgrpinfo" {if $doing eq 'editgrpinfo'} class="navbut4" {else} class="navbut3" {/if}><span>修改基本信息</span></a></li>
				<li><a href="groupadmin.php?grp_id={$grp_id}&doing=sendinvite" {if $doing eq 'sendinvite'} class="navbut4" {else} class="navbut3" {/if}><span>邀请用户加入</span></a></li>
				<li><a href="groupadmin.php?grp_id={$grp_id}&doing=dealapply" {if $doing eq 'dealapply'} class="navbut4" {else} class="navbut3" {/if}><span>处理加入申请</span></a></li>
				<li><a href="groupadmin.php?grp_id={$grp_id}&doing=managemembers" {if $doing eq 'managemembers'} class="navbut4" {else} class="navbut3" {/if}><span>管理小组成员</span></a></li>
				<li><a href="groupadmin.php?grp_id={$grp_id}&doing=managerecopeople" {if $doing eq 'managerecopeople'} class="navbut4" {else} class="navbut3" {/if}><span>小组推荐的人</span></a></li>
				<li><a href="groupadmin.php?grp_id={$grp_id}&doing=managerecothing" {if $doing eq 'managerecothing'} class="navbut4" {else} class="navbut3" {/if}><span>小组推荐的物</span></a></li>
			{/if}
		{/if}
	</ul>
</div>

<div id="navbar" style="display:">

</div>
